import { createStore } from "vuex";

export default createStore({
    state: {
        isLogin: localStorage.getItem("loginStatus"),
    },
    getters: {},
    mutations: {
        LOGIN(state, value) {
            state.isLogin = value;
            localStorage.setItem("loginStatus", value);
        },
    },
    actions: {
        login(context, value) {
            context.commit("LOGIN", value);
        },
    },
    modules: {},
});
